/***
 * @description axios封装
 * @file api.ts
 * @author andy
 * @date 2024/3/22 16:40
 */
// file:api.s
// 1、导入axios以及拦截器
import service from "./request";

// demo接口1
export const demo1 = (data: any) => {
  return service({
    url: "/user/user/demo1/" + data,
    method: "post",
  });
};

// demo接口2
export const demo2 = (data: any) => {
  return service({
    url: "/user/user/demo2",
    method: "post",
    data,
  });
};
//停车列表
export const getCarList = (data: any) => {
  return service({
    url: "/park/index/getCarList",
    method: "post",
    data,
  });
};
//添加停车列表
export const addCar = (data: any) => {
  return service({
    url: "/park/index/addCar",
    method: "post",
    data,
  });
};
//修改停车列表
export const updateCar = (data: any) => {
  return service({
    url: "/park/index/updateCar",
    method: "post",
    data,
  });
};
